//
//  ClassifyRankView.swift
//  ZNZXSuperMarket
//
//  Created by 四川中农 on 2018/9/7.
//  Copyright © 2018年 四川中农. All rights reserved.
//


typealias BackSeleIndexValue = ((Int,String))->Void

import UIKit

class ClassifyRankView: UIView {
    
    var backSeleIndex:BackSeleIndexValue!

    /*
    // Only override draw() if you perform custom drawing.
    // An empty implementation adversely affects performance during animation.
    override func draw(_ rect: CGRect) {
        // Drawing code
    }
    */
    
    @IBAction func btnClick(_ sender: UIButton) {
        if self.backSeleIndex != nil {
            self.backSeleIndex((sender.tag - 200,(sender.titleLabel?.text)!))
        }
    }
    
}
